Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use amrex::getParticleCell More #5557

Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jan 14, 2025

One leftover occurance in ParticleReductionFunctor.

Follow-up to #5118

One leftover occurance in `ParticleReductionFunctor`.
@ax3l ax3l added the component: diagnostics all types of outputs label Jan 14, 2025
@ax3l ax3l requested a review from archermarx January 14, 2025 17:38
@ax3l ax3l added the cleaning Clean code, improve readability label Jan 14, 2025
Copy link
Contributor

@archermarx archermarx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. What is the AMReX NGP interpolator?

@ax3l
Copy link
Member Author

ax3l commented Jan 14, 2025

I think the comment by @hklion (cc @atmyers) is to use an actual interpolation instead of assigning to a cell index. NGP (next-grid-cell) interpolation and just assigning to the cell a particle is in differs slightly. But in the end, if we use interpolation we probably would like to use at least CIC (cloud-in-cell) for clean results and charge conservation (where needed for analysis in respect to currents).

@archermarx
Copy link
Contributor

Gotcha, thanks!

@roelof-groenewald roelof-groenewald self-assigned this Jan 14, 2025
@roelof-groenewald roelof-groenewald enabled auto-merge (squash) January 14, 2025 17:52
@roelof-groenewald roelof-groenewald merged commit 57703f8 into ECP-WarpX:development Jan 14, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability component: diagnostics all types of outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants